<?php

require __DIR__ . '/vendor/autoload.php';
$entityManager = require __DIR__ . '/bootstrap.php';

$productRepository = $entityManager->getRepository('app\entities\Product');
$products = $productRepository->findAll();

foreach ($products as $product) {
    echo sprintf("-%s\n", $product->getName());
}
